from codecs import unicode_escape_decode
import subprocess
import sys
import os
import ctypes


def is_admin():
    try:
        return ctypes.windll.shell32.IsUserAnAdmin()
    except:
        return False
    

    

def do():
   return
        


if is_admin():
    print("已经是管理员权限")
    do()
else:
    print("正在获取管理员权限")
    ctypes.windll.shell32.ShellExecuteW(None,"runas",sys.executable,__file__,None,1)
    
